package com.example.hadoopdemo1.sort;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;

/**
 * 自定义排序
 *
 * @author cxx
 * @create 2020-02-13 22:18
 **/
public class MyStringComparator extends Text.Comparator {
    @Override
    public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) {
        return -super.compare (b1, s1, l1, b2, s2, l2);
    }
}
